// 清除localStorage中的成绩数据，确保使用新的初始化数据
localStorage.removeItem('grades');
console.log('Grade data cleared from localStorage');